package cn.shop.front.entity.order;

import cn.shop.transcation.common.entity.BaseEntity;
import cn.shop.utils.enums.GoodsType;
import cn.shop.utils.enums.OrderStatus;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author : 李一涵
 * @date : Created in 2021-11-8 13:13
 * @description : 订单表
 */
@EqualsAndHashCode(callSuper = false)
@TableName("`order`")
@Data
public class SimpleOrder extends BaseEntity {


	/**
	 * 卖家编号
	 */
	private Long sellerId;

	/**
	 * 卖家账号
	 */
	private String sellerAccount;

	/**
	 * 卖家名
	 */
	private String sellerName;

	/**
	 * 商品名
	 */
	private String goods;

	/**
	 * 商品数量
	 */
	private Long goodsNum;

	/**
	 * 价格
	 */
	private BigDecimal amount;

	/**
	 * 订单类型
	 */
	private GoodsType goodsType;

	/**
	 * 订单状态
	 */
	private OrderStatus status;

	private Long buyerId;
	private String buyerAccount;
	private Boolean received;
	private LocalDateTime dealTime;
	private Long partitionId;
	private LocalDateTime upTime;
	private LocalDateTime downTime;
	private LocalDateTime createTime;
	/**
	 * 游戏区名
	 */
	@TableField(exist = false)
	private String area;
	@TableField(exist = false)
	private String game;

}
